﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin_cms/admin_master.master"
    AutoEventWireup="true" CodeFile="admin_new_album.aspx.cs" Inherits="hydevmanager_admin_new_album" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="all_khung_form1">
        <div class="top_khung_form1">
            <h5>
                Thêm mới Album</h5>
        </div>
        <div class="khung_form1">
            <h3>
                Tên Album:
            </h3>
            <asp:TextBox runat="server" ID="txtAlbumName" Width="200px" EnableViewState="false"
                class="txtform"></asp:TextBox><br />
        </div>
        <div class="khung_form1">
            <h3>
                Anh đại diện:</h3>
            <asp:FileUpload runat="server" ID="fupic" Width="300px"  />
            <br />
        </div>
        <div class="khung_form1">
          
            <asp:ImageButton ID="btnNewAlbum" runat="server" Width="30px" OnClick="btnNewAlbum_click" ImageUrl="~/admin_cms/style/img/plus.ico" /> Thêm mới
        </div>
         <asp:GridView runat="server" ID="grAllphoto" AutoGenerateColumns="false" OnRowCommand='grAllphoto_click' CssClass="grid_menu_all_style"
                RowStyle-CssClass="grid_rows">
                <Columns>
                    <asp:TemplateField HeaderText="Id" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <%# Container.DataItemIndex + 1 %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ảnh" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <img style="width:168px;" alt='' src='../files_upload/album/<%#Eval("folder_name") + "/" + Eval("picture") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Mô tả ảnh" DataField="title" />
                    <asp:TemplateField HeaderText="Sửa" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtEdit" runat="server" CommandArgument='<%#Eval("idalbum")+"|edit|0" %>'>
                    <img src="style/img/Write_22.png" border="0" />
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xóa" ItemStyle-HorizontalAlign="Center" HeaderStyle-CssClass="grid_menu_all_header_style"
                        ItemStyle-CssClass="grid_menu_all_item_style">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtDelete" runat="server" CommandArgument='<%#Eval("idalbum")+"|delete|" + Eval("picture") %>'
                                OnClientClick="return confirm('Bạn có chắc chắn xóa không?')">
                    <img src="style/img/close_32.png" border="0" />
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
             <asp:ImageButton ID="quaylai" runat="server" Width="50px"  ImageUrl="~/admin_cms/style/img/document_save.ico" OnClick="save_click" /> Lưu lại
    </div>
</asp:Content>
